﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Talentnet.Data.Access;
using Talentnet.Data.Entity;

namespace Talentnet.Data.Factory
{
    partial class LoginUserFactory
    {
        public List<LoginUser> GetList()
        {
            return _dbObj.GetList();
        }

        public SEC_User GetUser(int clientID, string loginName)
        {
            return _dbObj.GetUser(clientID, loginName);
        }

        public List<SEC_User> GetUserList(int clientID, int roleID)
        {
            return _dbObj.GetUserList(clientID, roleID);
        }

        public void DeleteUsersInRoles(int clientID, string loginName)
        {
            _dbObj.DeleteUsersInRoles(clientID, loginName);
        }

        public void DeleteUser(int clientID, string loginName)
        {
            _dbObj.DeleteUser(clientID, loginName);
        }

        public void ResetPassword(int clientID, string loginName)
        {
            _dbObj.ResetPassword(clientID, loginName);
        }

        public void CreateNewUser(SEC_User user)
        {
            _dbObj.CreateNewUser(user);
        }

        public void UpdateUser(SEC_User user)
        {
            _dbObj.UpdateUser(user);
        }

        public void AssignRoleForUser(SEC_UsersInRole userInRole)
        {
            _dbObj.AssignRoleForUser(userInRole);
        }
    }
}
